package com.lill.workflow.dao;

import com.lill.common.component.dao.IBaseDao;
import com.lill.workflow.model.WorkflowCurrentModel;
import com.lill.workflow.model.WorkflowStepHistoryModel;

import java.util.List;
import java.util.Map;

/**
 * Dao
 *
 * @author lill
 * @date 2019-05-26 12:05:20
 */
public interface IWorkflowCurrentDao extends IBaseDao<WorkflowCurrentModel> {
    WorkflowCurrentModel queryBusiness(String businessId);
    List<WorkflowStepHistoryModel> queryObjectOne(Map<String, Object> hashMap);
    WorkflowCurrentModel queryBusinessQuite(String businessId);
    WorkflowCurrentModel queryBusinessFormal(String businessId);
    WorkflowCurrentModel listQuite (Map<String, Object> hashMap);
    WorkflowCurrentModel listFormal (Map<String, Object> hashMap);
    WorkflowCurrentModel queryCurrent (Map<String, Object> params);
    List<WorkflowStepHistoryModel> queryNextOne(Map<String, Object> hashMap);
    List<WorkflowStepHistoryModel> queryNextOneFormal(Map<String, Object> hashMap);
    List<WorkflowStepHistoryModel> queryObjectOneFormal(Map<String, Object> hashMap);
    WorkflowCurrentModel queryBusinessRenew(String businessId);
    WorkflowCurrentModel queryBusinessRenewById(String businessId);
    WorkflowCurrentModel listRenew (Map<String, Object> hashMap);
    List<WorkflowStepHistoryModel> queryNextOneRenew(Map<String, Object> hashMap);


    int queryCopyTotal(Map<String, Object> queryData);
}
